﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true" CodeFile="DeactiveUser.aspx.cs" Inherits="User_Employer_DeactiveUser" %>

<%@ Register src="../../Controls/ContentHolder/Holder1.ascx" tagname="Holder1" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

    .style1
    {
        width: 100%;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
   <div class="MainObject" dir="rtl">
  
   <uc1:Holder1 ID="Holder11" runat="server" Title="فعال و غیرفعال کردن کاربر">
   <ContentTemplate>
  
    <table class="style1">
        <tr>
            <td class="style2">
                <asp:Label ID="Label10" runat="server" Text="نوع کاربری"></asp:Label>
            </td>
            <td colspan="3">
                <asp:RadioButtonList ID="RadioButtonListRole" runat="server" 
                            AutoPostBack="True" 
                            onselectedindexchanged="RadioButtonListRole_SelectedIndexChanged" 
                            RepeatDirection="Horizontal" Width="496px">
                    <asp:ListItem Value="Advisor">مشاور</asp:ListItem>
                    <asp:ListItem Value="Surveyor">نقشه بردار</asp:ListItem>
                    <asp:ListItem Value="other">دیگر کاربران</asp:ListItem>
                </asp:RadioButtonList>
                
            </td>
        </tr>
        <tr>
            <td class="style2">
                        &nbsp;</td>
            <td align="center" colspan="3">
                <asp:RadioButtonList ID="RadioButtonListAdvisors" runat="server" 
                            RepeatDirection="Horizontal" Visible="False" Width="310px">
                    <asp:ListItem Value="Advisorhoghooghi">مشاور حقوقی</asp:ListItem>
                    <asp:ListItem Value="Advisorhaghighi">مشاور حقیقی</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                        &nbsp;</td>
            <td align="center" colspan="3">
                <asp:RadioButtonList ID="RadioButtonListSurveyor" runat="server" 
                            RepeatDirection="Horizontal" Visible="False" Width="310px">
                    <asp:ListItem Value="Advisorhoghooghi">نقشه بردار حقوقی</asp:ListItem>
                    <asp:ListItem Value="Advisorhaghighi">نقشه بردار حقیقی</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label12" runat="server" Text="نام خانوادگی"></asp:Label>
            </td>
            <td colspan="3">
                <asp:TextBox ID="TxtFamily" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                        &nbsp;</td>
            <td>
                        &nbsp;</td>
            <td>
                <asp:Button ID="Button3" runat="server" CssClass="MainObject" 
                            onclick="Button3_Click" Text="جستجو" Width="70px" />
            </td>
            <td>
                        &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" colspan="4">
                <asp:Label ID="Lblstatus" runat="server"></asp:Label>
                <asp:GridView ID="GridViewUsers" runat="server" AutoGenerateColumns="False" 
                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                            CellPadding="3" CssClass="MainObject" DataKeyNames="UserId" 
                            EnableModelValidation="True" onrowcommand="GridViewUsers_RowCommand" 
                            EmptyDataText="فرد مورد نظر یافت نشد" 
                    onrowcreated="GridViewUsers_RowCreated" AllowSorting="True"
                    onrowdatabound="GridViewUsers_RowDataBound" OnSorting="GridViewUsers_OnSort">
                      <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns> 
                        <asp:ButtonField CommandName="Deactive" Text="غیر فعال" ItemStyle-Width="100"  >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:ButtonField>
                        <asp:ButtonField CommandName="Active" Text="فعال" ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:ButtonField>
                        <asp:BoundField DataField="Name" HeaderText="نام" NullDisplayText="---" SortExpression="Name"
                            ItemStyle-Width="100"  >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Family" HeaderText="نام خانوادگی" SortExpression="Family"
                                    NullDisplayText="---"  ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Address" HeaderText="آدرس" NullDisplayText="---" 
                            ItemStyle-Width="100"  >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Tel" HeaderText="تلفن ثابت" NullDisplayText="---" 
                            ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Mobile" HeaderText="تلفن همراه" NullDisplayText="---" 
                            ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="UserName" HeaderText="نام کاربری" SortExpression="UserName"
                                    NullDisplayText="---" ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Role" HeaderText="نوع کاربر" />
                        <asp:BoundField DataField="UserName" HeaderText="وضعیت" 
                                    NullDisplayText="---" ItemStyle-Width="100" >
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="UserId" HeaderText="UserId" Visible="False" 
                            ItemStyle-Width="100" >
                       
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                       
                    </Columns>
                    
                  <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#CCCCFF" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
            </td>
        </tr>
    </table>
     </ContentTemplate>
   </uc1:Holder1>  
     </div>
</asp:Content>

